package com.ssm.zhihu_ssm.entity;

import javax.persistence.*;
import lombok.Data;

import java.util.List;

@Data
public class User {

    private Integer id;
    private String phone;
    private String password;
    private boolean state;
    private UserMessage userMessages;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public UserMessage getUserMessages() {
        return userMessages;
    }

    public void setUserMessages(UserMessage userMessages) {
        this.userMessages = userMessages;
    }
}
